package com.yhp.service.impl;

import com.yhp.bean.Menu;
import com.yhp.dao.MenuDao;
import com.yhp.dao.impl.MenuDaoImpl;
import com.yhp.service.MenuService;

import java.util.List;

public class MenuServiceImpl implements MenuService {
    private MenuDao menuDao=new MenuDaoImpl();
    @Override
    public List<Menu> selectAll() {
        return menuDao.selectAll();
    }

    @Override
    public int deleteById(int id) {
        return menuDao.deleteById(id);
    }

    @Override
    public int updateMenu(Menu menu) {
        return menuDao.updateMenu(menu);
    }

    @Override
    public int insertMenu(Menu menu) {
        return menuDao.insertMenu(menu);
    }

    @Override
    public Menu findById(int id) {
        return menuDao.findById(id);
    }
}
